
public class arrSort {

	
	public static void main(String[] args) {
		int a [] = {7, 3, 4, 765, 43, 67, 90, 1};
		int j = Array.getLength(a);
		System.out.println(j);
		for(int i=0; i<j; i++)
		{
			if(a[i] > a[i+1])
			{
				int temp;
				temp = a[i];
				a[i] = a[i+1];
				a[i+1]= temp;
			}
		}
		for (int i=0; i<j; i++)
		{
			System.out.println(a[i]);
		}

	}

}